package com.msmall.community.job;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.msmall.community.klg.service.KlgManager;

public class KlgJob {

	private static final Log log = LogFactory.getLog(KlgJob.class);
	
	private KlgManager klgManager;

	public void setKlgManager(KlgManager klgManager) {
		this.klgManager = klgManager;
	}
	
	/**
	 * 每个1小时
	 */
	public void refresh(){
		klgManager.refreshKlgByClickAmount(30);//MemoryManager
		log.debug("KlgJob finished!");
	}
}
